package com.hzsai.controller;

import com.hzsai.utils.DateUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * hzsai 2019/8/3
 * usage:
 **/
@RestController
public class HelloController {

    @RequestMapping("/")
    public String hello() {
        //throw new MyNullPtrException("dodobird");
        return "Hello, world!\n" + "获取时间是：" + DateUtil.getDate();
    }
}
